package com.graduation.rescuematerial.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.rescuematerial.dto.AppletCatalogDTO;
import com.graduation.rescuematerial.dto.CatalogDTO;
import com.graduation.rescuematerial.dto.DropDownBoxDTO;
import com.graduation.rescuematerial.pojo.Catalog;
import com.graduation.rescuematerial.vo.BaseCatalog;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CaiShuangLian
 * @since 2022-04-24
 */
@Mapper
public interface CatalogMapper extends BaseMapper<Catalog> {


    List<AppletCatalogDTO> getCatalogByCompanyName(String companyName);

    List<CatalogDTO> getAllCatalog();

    int addOne(BaseCatalog baseCatalog);

    int updateInfo(BaseCatalog baseCatalog);

    List<CatalogDTO> fuzzyQuery(String key);

    List<DropDownBoxDTO> catalogDropDownBox();
}
